package com.my.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.User;
import com.my.mapper.UserMapper;
import com.my.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public IPage<User> getList(IPage<User> page, User user) {
        return baseMapper.getList(page, user);
    }

    @Override
    public List<String> randStudent(Long classId, Integer count) {
        return baseMapper.randStudent(classId, count);
    }

}
